writing equations of trig graphs